﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Web;

namespace BabyToys.Models
{
    public class KhachHang
    {
        [Key, DatabaseGenerated(DatabaseGeneratedOption.Identity)]
        public int IdKhachHang { get; set; }
        public string TenDangNhap { get; set; }
        public string TenDayDu { get; set; }
        public string MatKhau { get; set; }
        public string SoDienThoai { get; set; }
        public string Email { get; set; }
        public string DiaChi { get; set; }
        public bool IsActive { get; set; }
        public int DiemTichLuy { get; set; }
        public Nullable<int> TinhThanh_Id { get; set; }
        public Nullable<int> IdLoaiKhachHang { get; set; }
        public virtual ICollection<HoaDon> HoaDons { get; set; }
        public virtual TinhThanh TinhThanh { get; set; }
        public virtual LoaiKhachHang LoaiKhachHang { get; set; }
    }
}